package com.order.controller;

import com.order.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AdminController {
    @Autowired
    private AdminService adminService;
    @RequestMapping("/login")
    public Boolean login(String user,String pass)
    {
        return adminService.login(user,pass);
    }
}
